package com.cinc.ebc.mm.mapper;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cinc.ebc.mm.entity.MmPurchaseOrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.mm.entity.MmPurchaseRequisitionDetail;
import com.cinc.ebc.mm.model.MmPurchaseOrderDetailModel;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 采购订单明细
 * @Author: jeecg-boot
 * @Date:   2022-03-20
 * @Version: V1.0
 */
public interface MmPurchaseOrderDetailMapper extends BaseMapper<MmPurchaseOrderDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<MmPurchaseOrderDetailModel> selectByMainId(IPage<MmPurchaseOrderDetailModel> page, @Param("mainId") String mainId);

	List<String> selectIdListByMainId(@Param("mainId") String mainId);

	List<String> selectIdListExclude(@Param("mainId") String mainId, @Param("idList") List<String> idList);

	List<String> selectReqDetailIdListByMainId(@Param("mainId") String mainId);

	int deleteLogicByIds(@Param("idList") List<String> idList);

	int deleteLogicByMainId(@Param("mainId") String mainId);

	BigDecimal selectInQtyById(@Param("id") String id);

    void deleteLogicById(@Param("id") String id);
}
